package com.shen.exceptionHandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //生成有参数的构造
@NoArgsConstructor //无参数的构造方法
public class GuliException extends RuntimeException{
    public Integer code;//状态码

    public String msg;//异常信息

    @Override
    public String toString() {
        return "GuliException{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
